

use rbatis::rbatis::Rbatis;
use rbatis::core::db::DBPoolOptions;
use async_once::AsyncOnce;

pub async fn init_rbatis() {
    let mut opt = DBPoolOptions::new();
    opt.max_connections = 20;
    RB.link_opt("mysql://root:root@10.110.35.175:3306/seezoon-stack", &opt).await.unwrap();
}

lazy_static! {
    pub static ref RB:Rbatis=Rbatis::new();
 }